package meadproperty.util;

import java.io.File;
import java.io.IOException;

import org.eclipse.core.runtime.Platform;

public class FileUtil {

	public static void createFile(String entryName) {
		File file = new File(entryName);
		try {
			if (file.exists()) {
				file.delete();
				file.createNewFile();
			} else {
				file.createNewFile();
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
		System.err.println("create file:" + file.getAbsolutePath());
	}

	public static void deleteFile(String entryName) {
		File file = new File(entryName);

		if (file.exists()) {
			file.delete();
		}
		System.err.println("delete file:" + file.getAbsolutePath());
	}

	public static void modifyFile(String entryName) {

	}
	public static String getOSFilePath(String path){
		
		return new File(path).getAbsolutePath();
	}
}
